<?php


namespace App\Http\Controllers;


use App\Models\Category;
use App\Models\Filter;
use Illuminate\Http\Request;

class BuildController extends Controller
{
    public function index(Request $request)
    {
        $cate = Category::getCateByTargetName('wangzhanjianshe');
        return view('build.index', compact('cate'));
    }

   // public function keywordseo()
    //{
       // $catelist = Category::getCateListBy('wangzhanjianshe');
        /*Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/keywordseo/',
            '<div class="full-case-crumbs">',
            '<div class="full-icontact-cover m-ft-contact">',
            'build/keywordseo'
        );*/
       // $cate = Category::getCateByTargetName('keywordseo');
       // return view('build.keywordseo',compact('cate', 'catelist'));
  //  }

    /*public function brand()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/brand/',
            '<div class="mob-fs14"><div class="weblg we-resources">',
            '<div class="full-related-news">',
            'build/brand'
        );
        $cate = Category::getCateByTargetName('brand');
        return view('build.brand',compact('cate', 'catelist'));
    }*/

    public function keywordseo()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/keywordseo/',
            '<div class="mob-fs14">',
            '<div class="full-related-news">',
            'build/keywordseo'
        );
        $cate = Category::getCateByTargetName("keywordseo");
        return view("build.keywordseo",compact("cate", "catelist"));
    }


    public function brand()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/brand/',
            '<div class="mob-fs14"><div class="weblg we-resources">',
            '<div class="full-related-news">',
            'build/brand'
        );
        $cate = Category::getCateByTargetName("brand");
        return view("build.brand",compact("cate", "catelist"));
    }


    public function vjitter()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/vjitter/',
            '<div class="weblg location-box">',
            '<div class="full-related-news">',
            'build/vjitter'
        );
        $cate = Category::getCateByTargetName("vjitter");
        return view("build.vjitter",compact("cate", "catelist"));
    }


    public function advmedia()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/advmedia/',
            '<div class="mob-fs14"><div class="weblg we-resources">',
            '<div class="full-related-news">',
            'build/advmedia'
        );
        $cate = Category::getCateByTargetName("advmedia");
        return view("build.advmedia",compact("cate", "catelist"));
    }


    public function pinpai()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/pinpai/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/pinpai'
        );
        $cate = Category::getCateByTargetName("pinpai");
        return view("build.pinpai",compact("cate", "catelist"));
    }


    public function qiye()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/qiye/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/qiye'
        );
        $cate = Category::getCateByTargetName("qiye");
        return view("build.qiye",compact("cate", "catelist"));
    }

    public function daxingmenhu()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/daxingmenhu/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/daxingmenhu'
        );
        $cate = Category::getCateByTargetName("daxingmenhu");
        return view("build.daxingmenhu",compact("cate", "catelist"));
    }


    public function quanfangwei()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/quanfangwei/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/quanfangwei'
        );
        $cate = Category::getCateByTargetName("quanfangwei");
        return view("build.quanfangwei",compact("cate", "catelist"));
    }


    public function jituanwangzhan()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/jituanwangzhan/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/jituanwangzhan'
        );
        $cate = Category::getCateByTargetName("jituanwangzhan");
        return view("build.jituanwangzhan",compact("cate", "catelist"));
    }


    public function waimaowangzhan()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/waimaowangzhan/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/waimaowangzhan'
        );
        $cate = Category::getCateByTargetName("waimaowangzhan");
        return view("build.waimaowangzhan",compact("cate", "catelist"));
    }


    public function marketing()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/marketing/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/marketing'
        );
        $cate = Category::getCateByTargetName("marketing");
        return view("build.marketing",compact("cate", "catelist"));
    }


    public function weihu()
    {
        $catelist = Category::getCateListBy('wangzhanjianshe');
        Filter::cutStr(
            'https://www.szweb.cn/wangzhanjianshe/weihu/',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'build/weihu'
        );
        $cate = Category::getCateByTargetName("weihu");
        return view("build.weihu",compact("cate", "catelist"));
    }


}























